package simple.factory;

import simple.product.AudiCar;
import simple.product.BenzCar;
import simple.product.BmwCar;
import simple.product.Car;


public class SimpleFactory {
	
	public static Car createCar(String car){
		if(car.equalsIgnoreCase("bmw")){
			return new BmwCar();
		}else if(car.equalsIgnoreCase("benz")){
			return new BenzCar();
		}else if(car.equalsIgnoreCase("audi")){
			return new AudiCar();
		}else{
			return null;
		}
	}
}
